package icu.groot.alan.entity;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class TokenEntity {
    private String code;
    private String userName;
    private String department;
    private String introduction;
    private String exp;

    public Map<String, String> getToMap(){
        Map<String, String> map = new HashMap<>();
        map.put("code", this.code);
        map.put("userName", this.userName);
        map.put("department", this.department);
        map.put("introduction", this.introduction);
        return map;
    }
}
